<!--
 * @Description: 左右响应式布局
 * @Author: rendc
 * @Date: 2025-09-17 10:07:19
 * @LastEditors: rendc
 * @LastEditTime: 2025-09-17 10:11:35
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>左右响应式布局</title>
  <style>
    /* 清除默认布局样式 */
    * {
      margin: 0;
      padding: 0;
    }

    .main {
      border: 1px solid red;
      width: 100vw;
      height: 100vh;
    }

    .app {
      /* border: 1px solid green; */
      height: 100%;

    }

    .inner {
      /* border: 1px solid red; */
      /* background-color: red; */
      /* display: grid; 容器的属性会导致项目的部分样式失效 */
      /* display: inline-block; */
      /* width: 200px; */
      height: 100%;
    }

    .inner1 {
      background-color: #00F9D3;
      float: left;
      width: 25%;
      min-width: 200px;
      min-height: 200px;
    }

    .inner2 {
      background-color: #00BDF8;
      float: right;
      width: 75%;
      min-width: 600px;
    }
  </style>
</head>

<body>
  <div class="main">
    <div class="app">
      <div class="inner inner1">左</div>
      <div class="inner inner2">右</div>
    </div>
  </div>
</body>

</html>